<!DOCTYPE html>
<html>
<head>
  <style>
  div { margin:3px; width:50px; position:absolute;
  height:50px; left:10px; top:30px; 
  background-color:yellow; }
  div.red { background-color:red; }  
</style>
  <script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
	<button>Start</button>  
<div></div>
<script>
$("button").click(function () {
  $("div").animate({left:'+=200px'}, 2000);
  $("div").animate({top:'0px'}, 600);
  $("div").queue(function () {
    $(this).css('border','15px solid blue');
    $(this).toggleClass("red");
    $(this).css('border','5px solid orange');
    $(this).animate({left:'+=1400px'}, 1400);
    $(this).css('border','0px solid blue');
  });
  $("div").animate({left:'10px', top:'300px'}, 5700);
});
</script>
</body>
</html>